<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script type="module" src="./app.ts"></script>
    <style>
      .video-container {
        margin: 20px 0;
      }

      video {
        width: 400px;
        height: 300px;
        background-color: #000;
        border: 1px solid #ccc;
        object-fit: cover;
      }
    </style>
  </head>
  <body>
    <h1>Web RTC Client</h1>
    <script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
    <script>
      // VConsole 默认会挂载到 `window.VConsole` 上
      var vConsole = new window.VConsole();
    </script>
    <button id="startBtn">Start Connection</button>

    <div>
      <h2>Remote Video</h2>
      <video id="remoteVideo" autoplay playsinline></video>
    </div>

    <div>
      <h2>Local Video</h2>
      <video id="localVideo" autoplay playsinline muted></video>
    </div>
  </body>
</html>
